package com.clw.practice.errors.paper2;

public class Demo1 {
    public static void main(String[] args) {
        int i = 9;
        switch (i) {
            default:
                System.out.println("default");
            case 0:
                System.out.println("zero");
                break;
            case 1:
                System.out.println("one");
            case 2:
                System.out.println("two");
        }
        //程序输出 default,zero
        //switch没有的时候会全部执行
    }
}
